<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/9/23 0023
 * Time: 11:40
 */

namespace App\Models;


class Goodsbrand extends Model
{
    protected $table      =   'yf_goods_brand';
    protected $primaryKey =   'brand_id';
    public $timestamps    =    false;


    public static function brandsList($page = 1,$row = 100){
        return self::where([
                ['brand_recommend','=',1],
                ['brand_enable','=',1]
             ])
            ->orderBy('brand_displayorder')
            ->limit($row)
            ->get();
    }

}